GBML manual / Tile Animation

background_animation_pause

Holds an animated background picture on the frame it shows until background_animation_play.

Works differently on Game Boy - An animated background plays only as the room's own picture; any other shows its first frame. It is shown in four greys. 3 squares are redrawn a frame, so a step that changes many squares arrives some frames late.

Works differently on Game Boy Color - An animated background plays only as the room's own picture; any other shows its first frame. A changing square keeps 4 colours (more are cut; the build says how many pixels). 6 squares are redrawn a frame, so a big step arrives a few frames late.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

background_animation_pause(picture)

Arguments

NameType
picturetileset

Returns

Nothing.

Description

Holds an animated background on the frame it shows, until background_animation_play. Its hold times stand still too: the frame carries on for the rest of its time when it plays again.

A picture that is already paused, and a picture that is not an animated background, are left as they are.

Example

background_animation_pause(ts_doc_dungeon);

Freezes the picture where it is.

On the GBA

A picture that is not an animated background, or one that is already paused, is left as it is.

See also: background_animation_playbackground_animation_speedbackground_animation_frameTile animation